
package com.be.beadmin.product.repository;

import com.be.beadmin.product.entity.PlantCapacityBase;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
* @author ljh
* @date 2023-03-26
**/
public interface PlantCapacityBaseRepository extends JpaRepository<PlantCapacityBase, String>, JpaSpecificationExecutor<PlantCapacityBase> {

    PlantCapacityBase findPlantCapacityBaseByIdAndDelete(String id, Integer delete);

    PlantCapacityBase findPlantCapacityBaseById(String id);

    List<PlantCapacityBase> findAllByDelete(Integer delete);

    PlantCapacityBase findPlantCapacityBaseByProcessCodeAndDelete(String processCode, Integer delete);

}